<%@ page import="com.wzy.Jdbc封装.pojo.News_detail" %>
<%@ page import="java.util.List" %>
<%@ page import="com.wzy.level.byPage.byPageDto.ByPage" %>
<jsp:useBean id="detail" class="com.wzy.level.detail.detailServiceImpl.detailServiceImpl"/>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<%--%>
<%--    int index = 0;--%>
<%--    int count = 4;--%>
<%--    String sindex = request.getParameter("index");--%>

<%--    if(sindex == null){--%>
<%--        index = 0;--%>
<%--    }else {--%>
<%--        index = Integer.parseInt(sindex)-1;--%>
<%--    }--%>
<%--    session.setAttribute("index",index);--%>

<%--    String count1 = request.getParameter("count");--%>
<%--    if(count1 != null){--%>
<%--        count = Integer.parseInt((count1));--%>
<%--    }--%>


<%--    session.setAttribute("count",count);--%>

<%--    ByPage byPage = new ByPage(index,count);--%>
<%--    List<News_detail> news_details = detail.selectByPage(byPage);--%>
<%--    session.setAttribute("news_detail",news_details);--%>

<%--    request.getRequestDispatcher("detail.jsp").forward(request,response);--%>
<%--%>--%>

</body>
</html>
